import request from '@/utils/request'

// 条件查询账单信息
export const billPagesService = (params) => {
  return request.get('/bills/pages', { params })
}

// 新增账单信息
export const billAddService = (data) => {
  return request.post('/bills/incomplete', data)
}

// 修改账单信息
export const billUpdateService = (data) => {
  return request.put('/bills', data)
}

// （批量）删除账单信息
export const billDeleteMultipleService = (data) => {
  return request.delete(`/bills/${data}`)
}

// 查询一定日期内账单金额数据
export const billMoneyDataService = (params) => {
  return request.get('/bills/moneyChart', { params })
}

// 查询一定日期内账单数目数据
export const billAmountDataService = (params) => {
  return request.get('/bills/amountChart', { params })
}

// 车辆进入
export const billCarInService = (img) => {
  return request.patch('/bills/carIn', { img })
}

export const billCarOutService = (img) => {
  return request.patch('/bills/carOut', { img })
}
